package com.koron.css2.newProjectCenter.mapper;


import com.koron.css2.newProjectCenter.bean.PjCollection;
import com.koron.css2.newProjectCenter.bean.query.PjCollectionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * (PjCollection)表数据库访问层
 *
 * @author 朱超
 * @since 2022-01-19 14:18:23
 */
public interface PjCollectionMapper {

    void insert(PjCollection pjCollection);

    void deleteById(@Param("id") String id);

    void update(PjCollection pjCollection);

    PjCollection getSingle(PjCollectionQuery pjCollectionQuery);

    List<PjCollection> getList(PjCollectionQuery pjCollectionQuery);

    int processingCount(@Param("pjCode") String pjCode);

    /**
     * 根据pjId查询工程信息
     */
    PjCollection getSingleByPjId(String consultId);


    /**
     * 根据工程报装ID查询收款日期
     * @param pjId
     * @return
     */
    Date getPaymentDateByPjId(@Param("pjId") String pjId);
}
